function testRest(name,age,...hobbies){
    console.log('name=',name);
    console.log('age=',age)
    console.log('hobbies=',hobbies);
}
testRest('robby',20,'running','singsing','dancing')

const myObj={
    name:'honey',
    age:19,
    address:'China',
    native:'北京',
    hobby:'singing'
}
const {name,age,...other}=myObj
console.log('name=',name);
console.log('age=',age);
console.log('other=',other);